package com.atguigu.exp;

import lombok.Getter;

@Getter
public class BusinessException extends RuntimeException//自定义异常
{
    private Integer code;/** 结果状态 ,具体状态码参见枚举类ReturnCodeEnum.java*/
    private String message;

    public BusinessException(Integer code, String message)
    {
        this.code = code;
        this.message = message;
    }
}
